package com.sram.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.sram.entity.Photo;
import com.sram.entity.User;

public interface UserService {
	public void saveUser(User user);
	public void updateUser(User user);
	public void deleteUser(int id);
	public User login(String userName,String password);
	public User usernameisUnique(String userName);
	List<User> findUser(DetachedCriteria detachedCriteria);
	public List<User> findall();
	public List<User> findByDetachedCriteriaLimit(DetachedCriteria detachedCriteria, int firstResult, int pageSize);
}
